  function queryLotteryTimeForm(pageIndex,pageSize)
  {
          var url =base+"/lotteryTime/pagingLotteryTime.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#lotteryContent").load(url+"&"+ encodeURI(encodeURI(params)));
  }


  function gotoPage(pageSize)
  {
        var pageIndex =jQuery("#pageIndex").val();
        queryLotteryTimeForm(pageIndex,pageSize);
  }


  function updateLotteryTime(id)
  {
     var time =jQuery("#lotteryTime-"+id).val();
      $.ajax({
        type: "POST",
        url: base+"/lotteryTime/updateLotteryTime.do",  
        data: {lotteryId:id,lotteryTime:time}, 
        success: function(data){ 
            var data=eval("("+data+")");
                if(data.STATUS==0)
                {
                     alert("修改成功!");
                     return ;
                }
                alert(data.MSG);  
         } 
        }
    );  
  }

  jQuery(function()
    {
          queryLotteryTimeForm(1,15);
    } 
    );